Skip to content

fix(python-sdk): upgrade fern python-sdk generator version #541

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 25, 2025

Conversation

fern-support
Copy link
Collaborator

tl/dr: python sdks generated with the new generator version (4.23.0 and later) consume much less memory ~72 MB

Description

We were seeing issues with memory footprint from just importing the vapi python sdk.
After some investigation, we discovered that this was caused by a change in pydantic versions 2.11.0 that caused one of our config specifications to eagerly do schema validation on all types at import type. In a recent change, we modified this configuration to retain the same type safety but to defer schema validation to usage time.

Testing Steps

We did some memory profiling tests to compare the most recent vapi-server-sdk python package against a locally generated preview sdk version to compare the cost of just importing the lib. We observed memory consumption of about 72MB with the new version, which we believe should be feasible for most environments to run.

  • Run the app locally using fern docs dev or navigate to preview deployment
  • Ensure that the changed pages and code snippets work

Copy link
Contributor

@dsinghvi dsinghvi merged commit 78566ac into main Jun 25, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants